/**
 * 
 */
package com.syncshot.androidapp.model;

import org.codehaus.jackson.annotate.JsonProperty;

/**
 * @author Stan
 *
 */
public class Event {
    /** Used locally to tag Logs */
    @SuppressWarnings("unused")
    private static final String TAG = "Event";

    private int mId;
    private String mDescription;
    private int mTimer;
    private int mRadius;
    private String mUser;
    private double mLongitude;
    private double mLatitude;
    
    @JsonProperty("id")
    public int getId() {
        return mId;
    }
    @JsonProperty("id")
    public void setId(int id) {
        mId = id;
    }
    @JsonProperty("description")
    public String getDescription() {
        return mDescription;
    }
    @JsonProperty("description")
    public void setDescription(String description) {
        if(description == null  || description.length() == 0) {
            description = "No description";
        }
        mDescription = description;
    }
    @JsonProperty("timer")
    public int getTimer() {
        return mTimer;
    }
    @JsonProperty("timer")
    public void setTimer(int timer) {
        mTimer = timer;
    }
    @JsonProperty("radius")
    public int getRadius() {
        return mRadius;
    }
    
    @JsonProperty("radius")
    public void setRadius(double radius) {
        mRadius = (int)radius;
    }
    @JsonProperty("user")
    public String getUser() {
        return mUser;
    }
    @JsonProperty("user")
    public void setUser(String user) {
        mUser = user;
    }
    @JsonProperty("longitude")
    public double getLongitude() {
        return mLongitude;
    }
    @JsonProperty("longitude")
    public void setLongitude(double longitude) {
        mLongitude = longitude;
    }
    @JsonProperty("latitude")
    public double getLatitude() {
        return mLatitude;
    }
    @JsonProperty("latitude")
    public void setLatitude(double latitude) {
        mLatitude = latitude;
    }
}
